<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="_fragments :: head(~{::title})" >
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>论坛</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../static/css/me.css">
</head>
<div class="container">
    <body>

    <!--导航-->
    <nav th:replace="_fragments :: menu(1)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
        <div class="ui container">
            <div class=" ui inverted  secondary stackable menu">
                <h2 class="ui teal header item ">自学论坛系统</h2>
                <a href="#" class="m-item item ui inverted red basic button m-mobile-hide"><i class="small globe icon"></i>首页</a>
                <a href="#" class="m-item item ui inverted orange basic button m-mobile-hide"><i class="small idea icon"></i>分类</a>
                <a href="#" class="m-item item ui inverted yellow basic button m-mobile-hide"><i class="small tags icon"></i>标签</a>
                <a href="#" class="m-item item ui inverted purple basic button m-mobile-hide"><i class="small clone icon"></i>归档</a>
                <a href="#" class="m-item item ui inverted olive basic button m-mobile-hide"><i class="small info icon"></i>关于我</a>
                <div class="m-item right item m-mobile-hide">
                    <div class="ui icon transition input">
                        <input type="text" placeholder="搜索...">
                        <i class="search link icon"></i>
                    </div>
                </div>
            </div>
        </div>
        <a href="#" class="ui menu toggle icon black button m-right-top m-mobile-show">
            <i class="list ui icon"></i>
        </a>
    </nav>


    <!--中间内容-->
    <div class="m-padded-tb-large m-container main-content">
        <div class="ui container">
            <div class="ui stackable grid">
                <!--左边列表-->
                <div class="eleven wide column">
                    <!-- header-->
                    <div class="ui top attached segment">
                        <div class="ui middle aligned two column grid">
                            <div class="column">
                                <h3 class="ui teal header">热帖</h3>
                            </div>
                            <div class="right aligned column">
                                共 <h2 class="ui orange header m-inline-block m-text-thin" th:text="${page.totalElements}"> 14 </h2> 篇
                            </div>
                        </div>
                    </div>
                    <!-- content-->
                    <div class="ui attached segment">
                        <div class="ui padded vertical segment m-padded-tb-big" th:each="blog : ${page.content}">
                            <div class="ui grid mobile reversed stackable">
                                <div class="eleven wide column">
                                    <h3 class="ui header"><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">The Stone Roses简介</a></h3>
                                    <p class="m-text" th:text="|${blog.description}......|"> 80年代末期英国流行音乐进入低潮，曾创造英国新浪潮音乐的曼彻斯特，这期间也变得萧条。正当英国音乐将在沉闷中进入90年代的时候，
                                        一支叫做“石玫瑰”(The Stone Roses)的乐队出现了，1989年，他们的第一张专辑的出版，使英国“独立摇滚”(Indie-Rock)现象进入了新的时代。</p>
                                    <div class="ui stackable grid">
                                        <div class="eleven wide column">
                                            <div class="ui horizontal mini link list">
                                                <div class="item">
                                                    <img src="../static/images/The%20Stone%20Roses.jpg"  th:src="@{${blog.user.avatar}}" alt="" class="ui avatar image">
                                                    <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}">The Stone Roses</a></div>
                                                </div>
                                                <div class="item">
                                                    <i class="calendar alternate icon"></i><span th:text="${#dates.format(blog.updateTime,'yyyy-MM-dd')}">2021-1-1</span>
                                                </div>
                                                <div class="item">
                                                    <i class="eye icon"></i><span th:text="${blog.views}">1234</span>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="right aligned  five wide column">
                                            <a href="#" target="_blank" class="ui teal basic label m-padded-large m-text-thin" th:text="${blog.type.name}">英伦摇滚</a>
                                        </div>
                                    </div>
                                </div>

                                <div class=" right aligned five wide column">
                                    <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
                                        <img src="../static/images/The%20Stone%20Roses.jpg" th:src="@{${blog.firstPicture}}" alt="" class="ui rounded image">
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- footer-->
                    <div class="ui bottom  attached segment" th:if="${page.totalPages}>1">
                        <div class="ui middle aligned two column grid">
                            <div class="column">
                                <a href="#" th:href="@{/(page=${page.number}-1)}"  th:unless="${page.first}" class="ui mini teal basic button">上一页</a>
                            </div>
                            <div class="right aligned column">
                                <a href="#" th:href="@{/(page=${page.number}+1)}"  th:unless="${page.last}" class="ui mini teal basic button">下一页</a>
                            </div>
                        </div>

                    </div>

                </div>

                <!--右边的top-->
                <div class="five wide column">
                    <!--分类-->
                    <div class="ui segments">
                        <div class="ui secondary segment">
                            <dvi class="ui two column grid">
                                <dvi class="column">
                                    <i class="idea icon"></i>分类
                                </dvi>
                                <dvi class="right aligned column">
                                    <a href="#" th:href="@{types/-1}"  target="_blank">more <i class="angle double right icon"></i></a>
                                </dvi>
                            </dvi>
                        </div>
                        <div class="ui teal segment">
                            <div class="ui fluid vertical menu">

                                <a href="#" th:href="@{/types/{id}(id=${type.id})}" target="_blank" class="item" th:each="type : ${types}">
                                    <span th:text="${type.name}">乐队简介</span>
                                    <div class="ui teal basic left pointing label" th:text="${#arrays.length(type.blogs)}">13</div>
                                </a>

                            </div>
                        </div>
                    </div>

                    <!--标签-->
                    <div class="ui segments m-margin-top-large">
                        <div class="ui secondary segment">
                            <dvi class="ui two column grid">
                                <dvi class="column">
                                    <i class="tags icon"></i>标签
                                </dvi>
                                <dvi class="right aligned column">
                                    <a href="#" th:href="@{tags/-1}" target="_blank">more <i class="angle double right icon"></i></a>
                                </dvi>
                            </dvi>
                        </div>
                        <div class="ui teal segment">

                            <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" target="_blank" class="ui teal basic left pointing label m-margin-tb-mini" th:each="tag : ${tags}">
                                <span th:text="${tag.name}">麦丽素之恋</span> <div class="detail" th:text="${#arrays.length(tag.blogs)}">3</div>
                            </a>
                            <!--/*-->
                            <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-mini">
                                Absolute Greatest<div class="detail">3</div>
                            </a>
                            <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-mini">
                                什么时候重组?<div class="detail">3</div>
                            </a>
                            <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb-mini">
                                yyds <div class="detail">3</div>
                            </a>
                            <!--*/-->

                        </div>
                    </div>

                    <!--最新推荐-->
                    <div class="ui segments m-margin-top-large">
                        <div class="ui secondary segment">
                            <i class="bookmark icon"></i>最新推荐
                        </div>
                        <div class="ui segment" th:each="blog : ${recommendBlogs}">
                            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">The Stone Roses 简介</a>
                        </div>
                        <!--/*-->
                        <div class="ui segment">
                            <a href="#" target="_blank" class="m-black">The Stone Roses 简介</a>
                        </div>
                        <div class="ui segment">
                            <a href="#" target="_blank" class="m-black">The Stone Roses 简介</a>
                        </div>
                        <div class="ui segment">
                            <a href="#" target="_blank" class="m-black">The Stone Roses 简介</a>
                        </div>
                        <!--*/-->
                    </div>


                    <!--二维码-->
                    <h4 class="ui horizontal divider header m-margin-top-large">扫码关注</h4>
                    <dvi class="ui card centered aligned"style="width: 200px">
                        <img src="../static/images/ewm.jpg" th:src="@{images/ewm.jpg}" alt="" class="ui rounded image">

                    </dvi>
                </div>
            </div>
        </div>

    </div>



    <!--底部-->
    <footer th:replace="_fragments :: footer" class="ui inverted vertical segment m-padded-tb-max">
        <div class="ui center aligned container">
            <div class="ui inverted divided stackable grid">
                <div class="two wide column">
                    <div class="ui inverted link list">
                        <div class="item">
                            <img src="../static/images/lemon.png" th:src="@{images/lemon.png}" class="ui rounded image" alt="" style="width: 120px">
                        </div>
                    </div>
                </div>
                <div class="four wide column">
                    <h4 class="ui inverted header m-opacity-mini">最新帖子</h4>
                    <div class="ui inverted link list m-text-spaced">


                    </div>
                </div>
                <div class="four wide column">
                    <h4 class="ui inverted header m-opacity-mini">联系我</h4>
                    <div class="ui inverted link list m-text-spaced">
                        <a href="#" class="item"><i class="envelope outline icon"></i> email: 12138@nmsl.com</a>
                        <a href="#" class="item"><i class="comments outline icon"></i> vx: s14635123</a>
                        <a href="#" class="item"><i class="phone icon"></i> phone: 110</a>

                    </div>
                </div>
                <div class="six wide column">
                    <h4 class="ui inverted header m-opacity-mini">关于此论坛</h4>
                    <p class="m-text-thin m-text-spaced m-opacity-mini">暂无。。。</p>
                </div>
            </div>
            <div class="ui inverted section divider"></div>
            <p class="m-text-thin m-text-spaced m-opacity-tiny"><i class="cn flag"></i>started in 2021.1.1 </p>
        </div>



    </footer>

    <!--/*/<th:block  th:replace="_fragments :: script">/*/-->
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
    <!--/*/</th:block>/*/-->

    <!--jquery获取菜单 隐藏-->
    <script>
        $('.menu.toggle').click(function () {
            $('.m-item').toggleClass('m-mobile-hide');

        });

    </script>

    </body>
</div>

</html>